import request from '@/utils/request'
import apiArr from '@/kaowu_api'

export function careerList(params) {
  return request({
    url: apiArr.careerList,
    method: 'get',
    params
  })
}
export function careerAdd(data) {
  return request({
    url: apiArr.careerAdd,
    method: 'post',
    data
  })
}
export function careerEdit(params, method = 'post') {
  if (method == 'post') {
    return request({
      url: apiArr.careerEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.careerEdit,
      method,
      params
    })
  }
}
export function careerDelete(data) {
  return request({
    url: apiArr.careerDelete,
    method: 'post',
    data
  })
}
export function careerModifyState(data) {
  return request({
    url: apiArr.careerModifyState,
    method: 'post',
    data
  })
}
